<template>
    <a-input v-model:value.number="count"></a-input>

    <br> <br>
    <childvue />
    
</template>
<script setup>
import { ref, provide } from 'vue'
import { fooSymbol } from './keys.js'
import childvue from './child.vue'
// 提供静态值
provide('foo', 'bar')

// 提供响应式的值
const count = ref(0)
provide('count', count)

// 提供时将 Symbol 作为 key
provide(fooSymbol, count)
</script>

<style lang="less" scoped>

</style>